Skip to content

Update Compute 'TestInit` test to use 'threadsafe.Buffer'#1601

Merged
rcaril merged 3 commits intomainfrom
rcaril/windows-test-investigation
Dec 15, 2025
Merged

Update Compute 'TestInit` test to use 'threadsafe.Buffer'#1601
rcaril merged 3 commits intomainfrom
rcaril/windows-test-investigation

Conversation

@rcaril
Copy link
Copy Markdown
Member

@rcaril rcaril commented Dec 15, 2025

Change summary

This PR eliminates the intermittent behavior of the TestInit function failing on the windows-latest test, which was caused by a race condition associated with the CLI yacspin spinner. Replacing the output capture from bytes.Buffer to threadsafe.Buffer ensures that race conditions are no longer occur by removing potential unsafe access to the buffer.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

@rcaril rcaril added the Skip-Changelog do not add a changelog entry for this change label Dec 15, 2025
@rcaril rcaril changed the title [Draft] - Windows Test Updates Update Compute 'TestInit` test to use 'threadsafe.Buffer' Dec 15, 2025
@rcaril
Copy link
Copy Markdown
Member Author

rcaril commented Dec 15, 2025

The windows test has passed a handful of iterations in this PR without fail (4 passes as of this comment).

@rcaril rcaril marked this pull request as ready for review December 15, 2025 16:50
@rcaril rcaril requested a review from a team as a code owner December 15, 2025 16:50
@rcaril rcaril requested a review from kpfleming December 15, 2025 16:50
Copy link
Copy Markdown
Member

@kpfleming kpfleming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a small change but containing so much power :-)

Copy link
Copy Markdown
Member

@philippschulte philippschulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rcaril rcaril merged commit fdb9234 into main Dec 15, 2025
13 checks passed
@rcaril rcaril deleted the rcaril/windows-test-investigation branch December 15, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip-Changelog do not add a changelog entry for this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants